package com.qf.work;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 千锋健哥
 */
@Component
@RabbitListener(queues = "queue2")
public class WorkListener1 {

    @RabbitHandler
    public void messageHandler(String msg) {
        System.out.println("=====WorkListener1=======" + msg);
    }
}
